﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Daemon.Model
{
    [Table("role_secured_item")]
    public partial class RoleSecuredItem
    {
        [Key]
        [Column("Id")]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]

        public int Id { get; set; }

        public int RoleId { get; set; }

        public int SecuredItemId { get; set; }

        public int SecurityRightId { get; set; }

        [ForeignKey("RoleId")]
        public virtual AdminRole Role { get; set; }

        [ForeignKey("SecuredItemId")]
        public virtual SecuredItem SecuredItem { get; set; }

        [ForeignKey("SecurityRightId")]
        public virtual SecurityRight SecurityRight { get; set; }
    }
}
